﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace EventBus.Abstractions
{
    /// <summary>
    /// Event handler.
    /// </summary>
    public  interface IEventHandler
    {
        Task<bool> HandleAsync<TEvent>(TEvent @event)
            where TEvent : IEvent;
    }
}
